package com.wang.lotterysystem.controller.param.prize;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class CreatePrizeParam implements Serializable {

    @Schema(description = "奖品名称")
    @NotBlank(message = "奖品名称不能为空")
    private String prizeName;

    @Schema(description = "奖品描述")
    private String description;

    @Schema(description = "奖品价值")
    @NotBlank(message = "奖品价值不能为空")
    private BigDecimal price;
}